package test

import groovy.xml.MarkupBuilder

def writer = new StringWriter()
def xml = new MarkupBuilder(writer)
xml.players() {
	player(id:1, firstName:'Didier', name:'Legrand') {
		members() {
			member(colony:'Zebig Colony 001', 'Gurtzak ze ferocious')
			member(colony:'Zebig Colony 001', 'Lollypop')
		}
		player(id:2, firstName:'Sylvie', name:'Descat') {
			members() {
				member(colony:'Zebig Colony 001', 'Yogolo')
				member(colony:'ZeMule', 'Leader Galactica')
			}
		}
	}
}

println writer.toString()
